<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("确认审核通过吗？")) {
		return;
	}
	var f = getTableForm();
	f.action="o_audit.do?status=1";
	f.submit();
}

function optDelete1() {
	if(Pn.checkedCount('ids')<=0) {
		alert("<@s.m 'error.checkRecord'/>");
		return;
	}
	if(!confirm("确认取消审核通过吗？")) {
		return;
	}
	var f = getTableForm();
	f.action="o_audit.do?status=-1";
	f.submit();
}
</script>
</head>
<body>
<div class="box-positon">
	<div class="rpos"><@s.m "global.position"/>: <@s.m "user.basicInfo"/> - <@s.m "global.list"/></div>
	<form class="ropt">
	<!-- 
		<input class="add" type="submit" value="<@s.m "global.add"/>" onclick="this.form.action='v_add.do';"/> -->
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form action="v_list.do" method="post" style="padding-top:5px;">
<div>
用户名称：<input type="text" name="name" value="${name!}" style="width:100px"/>&nbsp;
手机号：<input type="text" name="mobile" value="${mobile!}" style="width:100px"/>
店铺: <@p.select name="shopId" value=shopId list=shopList headerKey="" listKey="id" listValue="shopName" headerValue="cmsDictionary.type.allType"/>&nbsp;
<!-- 推荐人：<@p.select  name="carAdviserId" value=(carAdviserId)!"0" list=carAdvisers listKey="id" listValue="name" />&nbsp; -->
关注时间 &nbsp;起: <input type="text" name="q_createTime_start" value="${q_createTime_start!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>&nbsp;
止:<input type="text" name="q_createTime_end" value="${q_createTime_end!}" onclick="WdatePicker({dateFmt:'yyyy-MM-dd'})" class="Wdate"/>&nbsp;
状态 ：<@p.radio name="status" value=status list={"1":"已审核","-1","未审核"}/>&nbsp;

<input class="query" type="submit" value="<@s.m "global.query"/>"/>&nbsp;&nbsp;&nbsp;
<input  type="button" value="审核" onclick="optDelete();"/>&nbsp;&nbsp;&nbsp;
<input  type="button" value="取消审核" onclick="optDelete1();"/>
</div>
</form>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<@p.table value=pagination;userInfo,i,has_next><#rt/>
	<@p.column title="<input type='checkbox' onclick='Pn.checkbox(\"ids\",this.checked)'/>" width="20">
		<input type='checkbox' name='ids' value='${userInfo.id}'/><#t/>
	</@p.column><#t/>
	<@p.column code="shopInfo.shopName">${userInfo.shop.shopName!}</@p.column><#t/>
	<@p.column code="学校名称">${userInfo.school!}</@p.column><#t/>
	<@p.column code="班级名称">${userInfo.classes!}</@p.column><#t/>
	<@p.column code="用户名">${userInfo.name!}</@p.column><#t/>
	<@p.column code="手机">${userInfo.mobile!}</@p.column><#t/>
	<@p.column code="用户地址">${userInfo.address!}</@p.column><#t/>
	<!-- <@p.column code="推荐人ID" width="120">
		${(userInfo.sceneUser.id)!""}
	</@p.column><#t/>
	<@p.column code="推荐人" width="120">
		${(userInfo.sceneUser.name)!""}
	</@p.column><#t/> -->
	<@p.column code="关注时间">${userInfo.createTime!}</@p.column><#t/>
	<@p.column code="状态">
		<#if 1==userInfo.status>
			已审核
		</#if>
		<#if -1==userInfo.status>
			未审核
		</#if>
	</@p.column><#t/>
	<@p.column code="global.operate" align="center">
	    <a href="v_toViewUser.do?id=${userInfo.id}&name=${name!}&shopId=${shopId!}&carAdviserId=${carAdviserId!}&q_createTime_start=${q_createTime_start!}&q_createTime_end=${q_createTime_end!}&status=${status!}&pageNo=${pageNo!}" class="pn-opt"><@s.m "content.opt.view"/></a> | <#rt/>
		<a href="v_toEditUser.do?id=${userInfo.id}&name=${name!}&shopId=${shopId!}&carAdviserId=${carAdviserId!}&q_createTime_start=${q_createTime_start!}&q_createTime_end=${q_createTime_end!}&status=${status!}&pageNo=${pageNo!}" class="pn-opt"><@s.m "global.edit"/></a> | <#rt/>
		<!-- 
		<a href="o_delete.do?ids=${userInfo.id}&name=${name!}&shopId=${shopId!}&carAdviserId=${carAdviserId!}&q_createTime_start=${q_createTime_start!}&q_createTime_end=${q_createTime_end!}&status=${status!}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.delete"/>')) {return false;}" class="pn-opt"><@s.m "global.delete"/></a> | <#t/>
		 -->
		<a href="o_resetPwd.do?id=${userInfo.id}&name=${name!}&shopId=${shopId!}&carAdviserId=${carAdviserId!}&q_createTime_start=${q_createTime_start!}&q_createTime_end=${q_createTime_end!}&status=${status!}&pageNo=${pageNo!}" onclick="if(!confirm('<@s.m "global.confirm.resetPwd"/>')) {return false;}" class="pn-opt"><@s.m "global.resetPwd"/></a><#t/>
	</@p.column><#t/>
</@p.table>
<!-- <div><input class="del-button" type="button" value="<@s.m "global.delete"/>" onclick="optDelete();"/></div> -->
</form>
</div>
<#include "/common/alert_message.html"/>
</body>
</html>